package com.runoob.java;

/**
 * 属性
 * 方法
 */
public class Dog {
    String breed; // 品种
    public Dog() {

    }

    public Dog(String bread) {
        this.breed = bread;
    }
}

class SmallDog extends Dog {

    public SmallDog() {

    }

    public SmallDog(String bread) {
        super(bread);
    }

    public static void main(String[] args) {
        SmallDog xiaogou = new SmallDog();
        SmallDog xg2 = new SmallDog("黑屏");
    }
}
